Skip to content

ML-KEM memory safety #2263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open

ML-KEM memory safety #2263

wants to merge 46 commits into from

Conversation

m271828
Copy link

@m271828 m271828 commented Mar 11, 2025

Description of changes:

Adds length parameters to ML KEM module to ensure allocated memory for various outputs is sufficient for generated results. Checks that already exist in higher levels for some functions were not removed.

Issues:

Resolves #CryptoAlg-2945

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@codecov-commenter
Copy link

codecov-commenter commented Mar 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.86%. Comparing base (6c961b6) to head (d3ac208).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2263      +/-   ##
==========================================
+ Coverage   78.81%   78.86%   +0.05%     
==========================================
  Files         621      622       +1     
  Lines      108431   108664     +233     
  Branches    15398    15407       +9     
==========================================
+ Hits        85462    85700     +238     
+ Misses      22299    22294       -5     
  Partials      670      670              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@m271828 m271828 marked this pull request as ready for review March 13, 2025 23:31
@m271828 m271828 requested a review from a team as a code owner March 13, 2025 23:31
@hanno-becker hanno-becker mentioned this pull request Apr 3, 2025
@m271828
Copy link
Author

m271828 commented Apr 9, 2025

Updated to resolve merge conflicts from #2176 (change in how parameters are being used, new functions that were added have length checks too).

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 246. Check the log or trigger a new build to see more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants